package patternmining.model.graph;

import java.util.Iterator;
import java.util.TreeSet;
import java.util.Set;

/**Vertex implements the vertex of a typed digraph.
 * 
 * @version 1.0, 29.04.2008
 * @author Holger Wiehen
 */
public class Vertex{

    private VertexType type;
    private String name;
    private int id;
    private SourceReference source;
    
    public Vertex(int id, String name, VertexType type, SourceReference source){
        this.id = id;
        this.name = name;
        this.source = source;
        this.type = type;
    }

    public int id() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String name() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SourceReference source() {
        return source;
    }

    public void setSource(SourceReference source) {
        this.source = source;
    }

    public VertexType vertexType() {
        return type;
    }

    public void setVertexType(VertexType type) {
        this.type = type;
    }
    
     public String toString(){
        return "V-" + name;
    }
    
}
